package com.xxh.test;

import com.xxh.dao.TagDao;
import com.xxh.entity.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.io.IOException;
public class testMbatics {

    @Test
    public void test() throws IOException {
        ApplicationContext context=new ClassPathXmlApplicationContext("ApplicationContext.xml");
        TagDao tagDao=(TagDao)context.getBean("tagDao");
        Tag tag = tagDao.selectByPrimaryKey(1);
        System.out.println(tag);
    }
}
